package com.lywz.biz.common.entity.scenic;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;

/**
 * 景区图片实体类
 * 
 * @author Huadi Luojun
 * @date 2010-4-30
 */

@Entity
@Table(name = "t_scenic_image")
@NamedQueries({@NamedQuery(name="scenic.getScenicImage",query="from ScenicImage where scenicBelongsToId =:scenicId")})
public class ScenicImage extends AbstractEntity {

    private static final long serialVersionUID = 4663351447303034960L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String name; // 图片名称，也可以是景区名称

    private String imageUrl; // 图片地址URL

    private String imageMiddldUrl; // 中等图片URL

    private String imageThumbnailUrl; // 图片缩略图URL

    private Integer scenicBelongsToId; // 所属景区ID，用hibernate自动维护

    //////////Setters, Getters and Constructors//////////
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageMiddldUrl() {
        return imageMiddldUrl;
    }

    public void setImageMiddldUrl(String imageMiddldUrl) {
        this.imageMiddldUrl = imageMiddldUrl;
    }

    public String getImageThumbnailUrl() {
        return imageThumbnailUrl;
    }

    public void setImageThumbnailUrl(String imageThumbnailUrl) {
        this.imageThumbnailUrl = imageThumbnailUrl;
    }

    public Integer getScenicBelongsToId() {
        return scenicBelongsToId;
    }

    public void setScenicBelongsToId(Integer scenicBelongsToId) {
        this.scenicBelongsToId = scenicBelongsToId;
    }

    /** NULL Constructor */
    public ScenicImage() {
    }

    /** Full Constructor */
    public ScenicImage(Integer id, String name, String imageUrl, String imageMiddldUrl,
            String imageThumbnailUrl, Integer scenicBelongsToId) {
        super();
        this.id = id;
        this.name = name;
        this.imageUrl = imageUrl;
        this.imageMiddldUrl = imageMiddldUrl;
        this.imageThumbnailUrl = imageThumbnailUrl;
        this.scenicBelongsToId = scenicBelongsToId;
    }
}
